#ifndef THREAD_H
#define THREAD_H
#include <functional>
using namespace std;
class Thread
{
public:
	using ThreadFunc = function<void(int)>;
	
	Thread(ThreadFunc func);
	~Thread();
	void start();

	int getid()const;
private:
	ThreadFunc func_;
	static int id_;
	int threadId_;
};
#endif